appService.service('SysDataSourceConfigService', ['$resource', '$q', function ($resource, $q) {
    var sys_datasource_config_resource = $resource('', {}, {
    	load_sys_datasource_config: {
            method: 'GET',
            url: '/sys/datasource',
            isArray: true
        }
    });
    return {
        load_sys_datasource_config: function () {
            var d = $q.defer();
            sys_datasource_config_resource.load_sys_datasource_config({},
            function (result) {
                d.resolve(result);
            }, function (result) {
                d.reject(result);
            });
            return d.promise;
        }
    }
}]);